<@admin.html >
	<script type="text/javascript" src="${base}/scripts/admin/recruit/index.js"></script>
	<div class="title">
					<h1>礼物管理</h1>
					<span class="tTip"></span>
				</div>
				<div class="box">
						<div class="tx_table" id="presents_list">
							
								<div class="data">
									<div class="tx_sender l_tr" style="padding:5px 10px;">
										<input class="step" name="" type="button" value="添加新礼物" onclick="window.location='${base}/admin/present/index!add'"/>							
									</div>
									<table class="l_tc">
										<caption>礼物列表</caption>
										<thead>
											<tr>
												<th><input class="C" type="checkbox" value="" onclick="checkAll(this);"/></th>
												<th>礼物名称</th>
												<th>所需积分</th>
												<th>礼物预览</th>
												<th>操作</th>
											</tr>
										</thead>
										<tbody>
										<#if (presentPage.result)??>
										<#list presentPage.result as present>
											<tr <#if present_index%2 != 0> class="c_odd" </#if>>
												<td><input class="C items" type="checkbox" value="${(present.id?c)}" name="ids"/></td>
												<td>
													${(present.name)!}
												</td>
												<td>
													${(present.point)!}
												</td>
												<td>
													<a class="c_modi" href="${base}/admin/present/index!add?id=${(recruit.id)?c}">编辑</a>											
												</td>
											</tr>
										</#list>
										</#if>							
										</tbody>
									</table>
									
								</div>
							
							<@admin.pagination_admin div="presents_list" />
						</div>
				</div>
</@admin.html >